package com.example.orderassembly.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.entity.ServiceOrder;
import com.woniuxy.form.GetAfterSaleByPlatform;
import com.woniuxy.form.GetOrder;
import com.woniuxy.form.InsertServiceOrder;

/**
 * <p>
 * 用户服务订单表 服务类
 * </p>
 *
 * @author yang
 * @since 2021-09-21
 */
public interface IServiceOrderService extends IService<ServiceOrder> {

    Boolean insertServiceOrder(InsertServiceOrder insertServiceOrder);

    Boolean updateServiceOrderStatus(Integer serviceOrderId, Integer status);

    IPage<ServiceOrder> getServiceOrderByPlatform(GetOrder getOrder);

    IPage<ServiceOrder> getServiceOrderByStore(Integer storeId, GetOrder getOrder);

    IPage<ServiceOrder> getServiceOrderByUserId(GetOrder getOrder);

    ServiceOrder getServiceOrderById(Integer id);

    Boolean updateServiceOrderPayType(Integer orderId, Integer payType);
}
